<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form class="search" method="get" action="/VancouverTongue/search/temp">
	<dl>
		<dt>
			<label>Restaurant Name: </label>
		</dt>
		<dd>
			<input type="text" name="name" value="${name}" size="15"/>
		</dd>
		<dt>
			<label>City: </label>
		</dt>
		<dd>
			<input type="text" name="city" value="${city}" size="15" />
		</dd>
		<dt>
			<label>Category: </label>
		</dt>
		<dd>
			<select name="categoryCode">
				<option value="0">All</option>
				<c:forEach var="cat" items="${catList}">
					<c:if test="${cat.categoryCode eq code}">
						<option value="${cat.categoryCode}" SELECTED>${cat.name}</option>
					</c:if>
					<c:if test="${cat.categoryCode ne code}">
						<option value="${cat.categoryCode}">${cat.name}</option>
					</c:if>

				</c:forEach>
			</select>
		</dd>

	</dl>
	<input type="image" src="/VancouverTongue/static/search.png" />
</form>